﻿using System;
using System.Windows.Forms;

namespace Ersur
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            InitLookAndFeel();
            Application.Run(new MainForm());
        }

        private static void InitLookAndFeel()
        {
            Application.EnableVisualStyles();
            //Enable form skins here:
            DevExpress.Skins.SkinManager.EnableFormSkins(); // IfNotVista();

            //Register the skins with the application
            DevExpress.UserSkins.BonusSkins.Register();

            //Register the skins with the designer
            DevExpress.Skins.SkinManager.Default.RegisterAssembly(typeof(DevExpress.UserSkins.OfficeSkins).Assembly);
            DevExpress.Skins.SkinManager.Default.RegisterAssembly(typeof(DevExpress.UserSkins.BonusSkins).Assembly);

            Application.SetCompatibleTextRenderingDefault(false);
            //DevExpress.LookAndFeel.LookAndFeelHelper.ForceDefaultLookAndFeelChanged();

            /*
             * There is one exception in Devexpress framework. The NavBarControl does not use the skin technology automatically 
             * from your global LookAndFeel object, you need to specify a setting to enable that:
            //To use the current skin
            NavBarControl.PaintStyleName = "SkinNavigationPane";
            */
        }
    }
}
